package elitech.vietnam.copyweatherfashion.entities;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import com.google.gson.annotations.SerializedName;

public class Friend {

	@SerializedName("id")
	public int Id;

	@SerializedName("friendid")
	public int FriendID;

	@SerializedName("mem_id")
	public String Username;

	@SerializedName("mem_name")
	public String Name;
	
	@SerializedName("mem_pic")
	public String Image;
	
	@SerializedName("mem_profile")
	public String Profile;

	public int Type;

	@SerializedName("create_date")
	public String CreateDate;

	public Date CreateDate() {
		try {
			return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()).parse(CreateDate);
		} catch (ParseException e) {
			e.printStackTrace();
			return null;
		}
	}
}
